
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
<ul class="list">
                            <?php
                            require_once 'shuju.php';
                            $sql = "SELECT * FROM  t_message";
                            $result = $conn->query($sql);
                            
                            ?>
                            <?php if ($result->num_rows > 0) : ?>
                              <?php
                              $rows = $result->fetch_all(MYSQLI_ASSOC);
                              foreach($rows as $row):?>

<li class="onep">
                                            
					<p class="pic"><img src="<?php  echo $row['avater'];?> "alt=''</p>
					<p class="name"><?php  echo $row['usename'];?></p>
					<p class="content"><?php echo $row['content'];?>
					</p>
					<a class="edit_a" href="javascript:" onclick="if(confirm('确定修改吗？')) location.href='#'" >修改</a>
					<a class="delete" href="javascript:" onclick="if(confirm('确定删除吗？')) location.href='#'" >删除</a>
				</li>
                        <?php endforeach;?>
                      <?php else : ?>
                                <p>结果</p>
                      <?php endif ; ?>         
				        </ul>  
                                        